numpy.extract numpy.extract (condition, arr) [source] Return the elements of an array that satisfy some condition ... If condition is boolean np.extract is equivalent to arr[condition]. Note that place does the exact opposite of extract. Parameters: condi